<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>10-img和background的选择</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background: url("images/icon.gif") no-repeat;
            background-color: #ff0;
        }
    </style>
</head>
<body>

<div>
    <img src="images/heart.gif" alt="1234567">
    123
</div>

</body>
</html>